import java.util.function.DoubleToIntFunction;

public class staticuse {
    public static void main(String []args){
       // ee aa = new ee();
        aa.geta();
      int a= aa.a;
    }
}
class aa{
    static int a=geta();
    int aa=getaa();
    static {
        System.out.println("aa静态代码块被调用");
    }
    {
        System.out.println("aa代码块被调用");
    }
   public static int geta (){
        System.out.println("aa静态值被调用");
        return 10;
    }
  int getaa(){
      System.out.println("aa值被调用");
      return 22;
    }

    public aa() {
        System.out.println("aa构造器被调用");
    }
}
class ee extends aa {
    static int e=gete();
    int ea=getea();
    static {
        System.out.println("ee静态代码块被调用");
    }
    {
        System.out.println("ee代码块被调用");
    }
    static int gete (){
        System.out.println("ee静态值被调用");
        return 10;
    }
    int getea(){
        System.out.println("ee值被调用");
        return 22;
    }
    public ee() {
        System.out.println("ee的构造器被调用");
    }
}